<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Word extends Model
{
    //
    protected $table="words";

    public function cats(){
        return $this->belongsToMany('App\Models\Category','word_category','word_id','category_id');
    }
}
